package com.gongj.xml.bean;

import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.stereotype.Component;

import java.beans.ConstructorProperties;
import java.util.function.Supplier;

public class Person {

	private String name;
	private Integer age;

	//@ConstructorProperties({"age333"})
	public Person(Integer age) {
		this.age = age;
	}

	private Person(){}

	//@ConstructorProperties({"ddn","dda"})
	public Person(String name,Integer a) {
		this.name = name;
	}


	@Override
	public String toString() {
		return "Person{" +
				"name='" + name + '\'' +
				", age=" + age +
				'}';
	}
}
